CLASS ymoon_cl_save_header DEFINITION
  PUBLIC
  FINAL
  CREATE PUBLIC .

  PUBLIC SECTION.

    INTERFACES if_badi_interface .
    INTERFACES if_cobadicfl_mfgorder_hdr .
  PROTECTED SECTION.
  PRIVATE SECTION.
ENDCLASS.



CLASS YMOON_CL_SAVE_HEADER IMPLEMENTATION.


  METHOD if_cobadicfl_mfgorder_hdr~modify_header.
    manufacturingorder_changed-manufacturingorder = manufacturingorder-manufacturingorder.
    manufacturingorder_changed-yy1_test_checkbox_bds_ord = 'X'.

*    DATA:LT_999 TYPE TABLE OF ymoon_t999,
*    LS_999 TYPE ymoon_t999.
*    LS_999-aufnr = manufacturingorder-manufacturingorder.
*    LS_999-matnr = manufacturingorder-material.
*    LS_999-menge = manufacturingorder-mfgorderplannedtotalqty.
*    LS_999-meins = manufacturingorder-productionunit.
*    LS_999-ernam = SY-UNAME.
*    LS_999-timestampl = SY-UZEIT.
*    APPEND LS_999 TO LT_999.
*    MODIFY ymoon_t999 FROM TABLE LT_999.
*     CALL FUNCTION 'YMOON_FM01'.
*     EXPORTING
*     i_matntr = '1111'.
  ENDMETHOD.
ENDCLASS.
